﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ShredTheLog.Api.DataContracts.Languages
{
    public class LanguagePackRow
    {
        [XmlAttribute("ID")]
        public int Id { get; set; }

        [XmlAttribute("TX")]
        public string Text { get; set; }

        public override string ToString()
        {
            if (String.IsNullOrEmpty(Text))
                return base.ToString();
            else
                return Text;
        }
    }
}
